<html>       
<body>      
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
        <c:import url="cabecalho.jsp"/>
	<jsp:useBean id="dao" class="modelo.dao.AlunoDAO"/>
        <p>Contato ${param.nome} adicionado com sucesso!</p>
        <table border="1">
            <c:forEach var="aluno" items="${dao.listar}" varStatus="id">
                <tr bgcolor="${id.count % 2 == 0 ? 'aaee88' : 'ffffff' }">
                    <td>${aluno.id}</td>
                    <td>${aluno.nome}</td>
                    <td>${aluno.idade}</td>                    
                    <td>
                        <c:choose>
                            <c:when test="${not empty aluno.email}">
                                <a href="mailto:${aluno.email}">${aluno.email}</a>
                            </c:when>                            
                            <c:otherwise>
                                <a href="mailto:adm@leon.com">adm@leon.com</a>
                            </c:otherwise>
                        </c:choose>
                    </td>                    
                </tr>
            </c:forEach>
        </table>     
        <c:import url="rodape.jsp"/>
<body>
<html>
    
